import http from "../request";
const apibase = "/api/Resource";

//获取资源
var getUserResource = function () {
  return new Promise((resolve, reject) => {
    http
      .get(apibase + `/GetUserResource`)
      .then((res) => {
        resolve(res);
      })
      .catch((error) => {
        reject(error);
      });
  });
};
//获取资源列表
var getUserResourceList = function () {
  return new Promise((resolve, reject) => {
    http
      .get(apibase + `/GetUserResourceList`)
      .then((res) => {
        resolve(res);
      })
      .catch((error) => {
        reject(error);
      });
  });
};
export { getUserResource, getUserResourceList };
